
from flask_script import Manager

from flask_migrate import Migrate, MigrateCommand

from info import db, create_app, setup_log

# 创建模型类于数据库
from info import models

app =create_app('develop')

setup_log("develop")

Migrate(app, db)

manager = Manager(app)

manager.add_command('db', MigrateCommand)

if __name__ == '__main__':

    print(app.url_map)
    manager.run()